package com.gidgabs.modules.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.gidgabs.modules.entity.SysUserToken;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * 系统用户Token Mapper 接口
 */
@Mapper
@Repository
public interface SysUserTokenDao extends BaseMapper<SysUserToken> {

    SysUserToken queryByToken(String token);

    SysUserToken queryByUserId(Long userId);

    void save(SysUserToken sysUserToken);

    Integer update(SysUserToken sysUserToken);

}
